<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle = Yii::app()->name . ' - Przypomnienie hasła';
?>
	
<?php
	if($success == 1)
	{
		Yii::app()->clientScript->registerScript('remind', "
			$(function(){
				$('#success').dialog('open');
			});
		");
	}
?>
<?php	$this->beginWidget('zii.widgets.jui.CJuiDialog', array( 
	'id'=>'success',
	'options'=>array(
		'autoOpen'=>false,
		'modal'=>true,
		'buttons'=>array('Ok' => 'js:function() { $(this).dialog(\'close\'); window.location.replace("http://156.17.39.107:8083/index.php/site/login"); }'),
		'width'=>'auto',
		'height'=>'auto',
		'resizable'=>false
	),
)); ?>
<div>Nowe hasło zostało wysłane na podany adres email.</div>
<?php $this->endWidget(); ?>
<div class="form">
	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'remind-form',
		'enableClientValidation' => true,
		'clientOptions'=>array('validateOnSubmit'=>true),
	)); ?>
	<div class="row">
		<?php echo $form->error($model,'email'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email'); ?>
	</div>

	<div class="row buttons">
		<label></label><?php echo CHtml::submitButton('Przypomnij hasło', array('class'=>'FormButton')); ?>
	</div>

	<?php $this->endWidget(); ?>
</div>
